package edu.nf.ch08.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author wangl
 * @date 2025/9/17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "User", description = "用户信息")
public class User {
    @Schema(name = "id", description = "用户唯一标识", example = "1")
    private Integer id;
    @Schema(name = "username", description = "用户名", example = "张三")
    private String username;
    @Schema(name = "age", description = "年龄", example = "20")
    private Integer age;
}